package com.shenyi.wx.service;

import com.shenyi.wx.api.IApiAddressService;
import com.shenyi.wx.dao.ApiAddressMapper;
import com.shenyi.wx.entity.AddressDO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class ApiAddressService implements IApiAddressService {


    @Autowired
    private ApiAddressMapper addressDao;


    public AddressDO queryObject(Integer id) {
        return addressDao.queryObject(id);
    }


    public List<AddressDO> queryList(Map<String, Object> map) {
        return addressDao.queryList(map);
    }


    public int queryTotal(Map<String, Object> map) {
        return addressDao.queryTotal(map);
    }


    public void save(AddressDO address) {
        addressDao.save(address);
    }


    public void update(AddressDO address) {
        addressDao.update(address);
    }


    public void delete(Integer id) {
        addressDao.delete(id);
    }


    public void deleteBatch(Integer[] ids) {
        addressDao.deleteBatch(ids);
    }

}
